package it.aekidna.cleverplatypus.workflow
{
   import flash.events.Event;

   public class WorkflowEvent extends Event
   {
      public static const STARTED : String = "started";
      public static const FAULT : String = "fault";
      public static const COMPLETED : String = "completed";
      public static const WARNING : String = "warning";
      public static const ABORT : String = "abort";

	  private var _exitMessage : String = "";
	  
      public function WorkflowEvent( inType : String, inExitMessage : String = "" )
      {
         super( inType );
         _exitMessage = inExitMessage;
      }
            
      public function get exitMessage() : String
      {
      	return _exitMessage;
      }
      
      override public function clone() : Event
      {
         return new WorkflowEvent( type, _exitMessage );
      }
      
   }
}